package com.reremouse.ejb.impl;

import com.reremouse.ejb.IPSeekerServiceRemote;
import com.reremouse.ip.IPSeeker;

public class IPSeekerService
        implements IPSeekerServiceRemote {
    private static IPSeeker ipSeeker = new IPSeeker();

    public String seek(String ip) {
        System.out.println("开始查询IP:" + ip);
        String address = ipSeeker.getAddress(ip);
        System.out.println(address);
        return address;
    }

    public String getCountry(String ip) {
        return ipSeeker.getCountry(ip);
    }

    public String getArea(String ip) {
        return ipSeeker.getArea(ip);
    }
}



/* Location:           F:\jsp源码\蝙蝠论坛系统\rerebbs\WEB-INF\classes\

 * Qualified Name:     com.reremouse.ejb.impl.IPSeekerService

 * JD-Core Version:    0.7.0.1

 */